package com.ag.zrt.dao;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.ag.bean.TbPsContent;

public class TbPsContentDAO extends com.ag.dao.TbPsContentDAO {
	private static final Log log = LogFactory.getLog(TbPsContentDAO.class);

	public List<TbPsContent> findByProperty(String propertyName, Object value) {
		log.debug("finding TbPsContent instance with property: " + propertyName
				+ ", value: " + value);
		try {
			String queryString = "from TbPsContent as model where model."
					+ propertyName + "= ?";
			return getHibernateTemplate().find(queryString, value);
		} catch (RuntimeException re) {
			log.error("find by property name failed", re);
			throw re;
		}
	}

}
